package com.finance_provider.mapper;

import com.entity.SaleAdvance;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/22 14:53
 */
@Mapper
public interface SaleAdvanceMapper {

    /**
     * 添加销货预收款信息
     * @param saleAdvance
     * @return
     */
    Boolean addSaleAdvance(SaleAdvance saleAdvance);

    /**
     * 修改销货预收款信息
     * @param saleAdvance
     * @return
     */
    Boolean updateSaleAdvance(SaleAdvance saleAdvance);

    /**
     * 多条件查询销货预收款信息
     * @param saleAdvance
     * @return
     */
    List<SaleAdvance> querySaleAdvance(SaleAdvance saleAdvance);

    /**
     * 根据id查询销货预收款信息
     * @param id
     * @return
     */
    SaleAdvance querySaleAdvanceId(Long id);

    /**
     * 根据id删除销货预付款信息
     * @param id
     * @return
     */
    Boolean deleteSaleAdvance(Long id);
}
